import Mock from 'mockjs'

class MockClass {
	constructor() {
		if (new.target !== MockClass) {
			return
		}
		if (!MockClass.instance) {
			this.baseURL = 'http://localhost:6666'
			MockClass.instance = this
		}
		return MockClass.instance
	}
	
	mock (...params) {
		return Mock.mock(...params)
	}
	
	setup (...params) {
		return Mock.setup(...params)
	}
}

export default new MockClass()